﻿using Mes.Application.DTO.Inputs.Operations;
using Mes.Application.DTO.Results.Operations;

namespace Mes.Application.Services.Operations
{
    public interface IOperService
    {
        /// <summary>
        /// 添加工序（将标准工序转换为工序）
        /// </summary>
        /// <param name="operInput"></param>
        /// <returns></returns>
        Task AddOperationAsync(OperInput operInput);

        /// <summary>
        /// 编辑工序
        /// </summary>
        /// <param name="operUpdateInput"></param>
        /// <returns></returns>
        Task UpdateOperationAsync(OperUpdateInput operUpdateInput);

        /// <summary>
        /// 删除工序
        /// </summary>
        /// <param name="process_id"></param>
        /// <param name="oper_ids"></param>
        /// <returns></returns>
        Task DeleteOperationAsync(string process_id, string[] oper_ids);

        /// <summary>
        /// 查询指定工序
        /// </summary>
        /// <param name="process_id"></param>
        /// <param name="oper_id"></param>
        /// <returns></returns>
        Task<OperResult> GetOperationAsync(string process_id, string oper_id);
    }
}
